﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ZMHModels;

namespace ZMHWcfServiceLibrary
{
    // 注意: 使用“重构”菜单上的“重命名”命令，可以同时更改代码和配置文件中的接口名“IWCFWithDataContractSVC”。
    [ServiceContract]
    public interface IWCFWithDataContractSVC
    {
        [OperationContract]
        void DoWork();
        [OperationContract]
        void InsertStu(List<Stu> stuList);
        [OperationContract]
        List<Stu> GetStuList();
        [OperationContract]
        List<Car> GetCarInfo();
        [OperationContract]
        Dictionary<int, Stu> GetDicInfo();
    }
    [DataContract]
    public class Stu
    {
        [DataMember]
        public string Name { get; set; }
        [DataMember]
        public int Age { get; set; }
        [DataMember]
        public Dictionary<string, double> DicScore;
    }
}
